package com.retail.product.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 商品添加响应DTO
 *
 * @author retail
 * @since 2024-09-25
 */
@Data
@Schema(description = "商品添加响应DTO")
public class ProductAddResponseDTO {

    /**
     * 商品ID
     */
    @Schema(description = "商品ID", example = "1")
    private Long id;

    /**
     * 商品名称
     */
    @Schema(description = "商品名称", example = "iPhone 15 Pro")
    private String name;

    /**
     * 商品描述
     */
    @Schema(description = "商品描述", example = "苹果最新款手机")
    private String description;

    /**
     * 商品分类ID
     */
    @Schema(description = "商品分类ID", example = "1")
    private Long categoryId;

    /**
     * 品牌
     */
    @Schema(description = "品牌", example = "Apple")
    private String brand;

    /**
     * 型号
     */
    @Schema(description = "型号", example = "A3108")
    private String model;

    /**
     * 状态：1-上架，0-下架
     */
    @Schema(description = "状态：1-上架，0-下架", example = "1")
    private Integer status;

    /**
     * 排序
     */
    @Schema(description = "排序", example = "0")
    private Integer sortOrder;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updatedTime;
}

